function main() {
    const self = this; // 重置作用域
    const tableComp = self.findElement("table_hmdsgj"); // 获取表格元素
    // 调用跳转页面的方法，将当前上下文和表格元素做为参数
    jumpToPage(self, tableComp);
}


function jumpToPage(self, tableComp) {
    const element = self;
    const rootPageElement = null;
    // 循环向上找页面根元素，就是有页面回退方法的元素
    while (element) {
        if (element.getPageInfo && element.goHistory) {
            rootPageElement = element;
            break;
        } else {
            element = element.$parent;
        }
    }

    // 获取当前树选中节点
    let treeSelect = this.$$("tree_panel_eydsu5").$$getSelection().selectedKeys[0];

    if (rootPageElement) {

        rootPageElement.$$open("1830891754301280256", "PAGE", {
            title: "新增公示目录",
            cached: false,
            backStep: 1,
            showHeader: true,
            extraParams: {
                actionType: { action: "insert" },
                treeSelectNode: treeSelect
            },
            callback: (actionType) => {
                debugger
                console.log(actionType);
                let pageRenderElement = self.$$root().$parent.$parent.$parent;
                // 在页面reder中找到新增按钮上传过来的路由参数
                let extraParams = pageRenderElement.$$getRouteView().$$getRenderElement().extraParams;
                if (extraParams && extraParams.actionType.action === "commit") {
                    if (tableComp) {
                        tableComp.$$refreshData();
                    }
                }
            }
        });
    }
}
